package app.dao;

import java.util.List;

import app.model.Tbluser;

public interface IUserDao {

	// property constants
	public static final String NAME = "name";
	public static final String SEX = "sex";

	public abstract void save(Tbluser transientInstance);

	public abstract void delete(Tbluser persistentInstance);

	public abstract Tbluser findById(java.lang.Integer id);
	
	public abstract Tbluser find(String rolename);

	public abstract List findByExample(Tbluser instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByName(Object name);

	public abstract List findBySex(Object sex);

	public abstract List findAll();

	public abstract Tbluser merge(Tbluser detachedInstance);

	public abstract void attachDirty(Tbluser instance);

	public abstract void attachClean(Tbluser instance);

}